package com.haskie.product.feign;

import com.haskie.api.entity.User;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "user-server")
public interface IUserFeignService {

    @GetMapping("/getAllUser/{id}")
    User getAllUser(@RequestParam(name = "id",required = true) @PathVariable("id") String id);
}
